// Copyright (C) 2024 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.pf-split-panel {
  height: 100%; // Fill parent container
  display: flex;
  flex-direction: column;

  &__main {
    flex: 1; // Fill the remaining space
    overflow: auto;

    // Making this a flex element allows multiple individually overflowing
    // sections to be added to the main content area.
    display: flex;
    flex-direction: column; // Users normally expect content to stack vertically
  }

  &__handle {
    background-color: hsl(215, 1%, 95%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
    cursor: row-resize;
    // Disable user selection since this handle is draggable to resize the
    // bottom panels.
    user-select: none;
    display: flex;
    font-size: 22px;
    align-items: baseline;
    padding-inline: 2px;
  }

  &__handle-content {
    flex: 1; // Expand to fill the remaining space
    overflow: hidden;
  }

  &__drawer {
    flex-shrink: 0;
    overflow: auto;
    box-shadow: #0000003b 0px 0px 3px 1px;
  }
}
